from django.shortcuts import render

# Create your views here.
from django.views import View
from django.core.serializers import serialize
from rest_framework.response import Response
from rest_framework.views import APIView

import requests
class Index(APIView):
    def get(self, request):
        username=request.GET.get('name')
        password=request.GET.get('password')
        print(username,password)
       

        return Response({'code':200,'info':'你瞅啥'})
    def post(self, request):
        data=request.data
        print(data)
        return Response({'code':200,'info':'瞅你咋地'})
    
    
lihouqi_project_settings_vue